$OpenBSD: patch-vcl_Library_vclplug_tde_mk,v 1.2 2015/09/29 16:10:48 robert Exp $
--- vcl/Library_vclplug_tde.mk.orig.port	Thu Sep 17 15:33:12 2015
+++ vcl/Library_vclplug_tde.mk	Sun Sep 27 12:18:17 2015
@@ -74,10 +74,10 @@ $(eval $(call gb_Library_add_cxxflags,vclplug_tde,\
 
 $(eval $(call gb_Library_set_warnings_not_errors,vclplug_tde))
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Library_add_libs,vclplug_tde,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
 ))
 endif
